Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sunset Site Assembler: Delete Pattern Assembler #97325

Draft
wants to merge 4 commits into
base: trunk
Choose a base branch
from

Conversation

taipeicoder
Copy link
Contributor

Related to https://github.com/Automattic/dotcom-forge/issues/10066

Proposed Changes

Why are these changes being made?

Testing Instructions

Pre-merge Checklist

  • Has the general commit checklist been followed? (PCYsg-hS-p2)
  • Have you written new tests for your changes?
  • Have you tested the feature in Simple (P9HQHe-k8-p2), Atomic (P9HQHe-jW-p2), and self-hosted Jetpack sites (PCYsg-g6b-p2)?
  • Have you checked for TypeScript, React or other console errors?
  • Have you used memoizing on expensive computations? More info in Memoizing with create-selector and Using memoizing selectors and Our Approach to Data
  • Have we added the "[Status] String Freeze" label as soon as any new strings were ready for translation (p4TIVU-5Jq-p2)?
    • For UI changes, have we tested the change in various languages (for example, ES, PT, FR, or DE)? The length of text and words vary significantly between languages.
  • For changes affecting Jetpack: Have we added the "[Status] Needs Privacy Updates" label if this pull request changes what data or activity we track or use (p4TIVU-aUh-p2)?

@matticbot
Copy link
Contributor

matticbot commented Dec 11, 2024

Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:

App Entrypoints (~190 bytes removed 📉 [gzipped])

name                   parsed_size           gzip_size
entry-subscriptions         -753 B  (-0.0%)     -173 B  (-0.0%)
entry-login                 -753 B  (-0.0%)     -173 B  (-0.0%)
entry-domains-landing       -753 B  (-0.1%)     -173 B  (-0.1%)
entry-browsehappy           -753 B  (-0.4%)     -173 B  (-0.3%)
entry-stepper               -548 B  (-0.0%)     -190 B  (-0.0%)
entry-main                  -321 B  (-0.0%)     -113 B  (-0.0%)

Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used.

Sections (~2543 bytes removed 📉 [gzipped])

name                                parsed_size            gzip_size
with-theme-assembler-flow              +20018 B  (+26.4%)    +5623 B  (+47.6%)
patterns                                -4235 B   (-0.2%)    -1313 B   (-0.2%)
site-setup-wg                           -3639 B   (-3.1%)     -529 B   (-2.2%)
site-setup-flow                         -3639 B   (-3.2%)     -529 B   (-2.2%)
update-design-flow                      -3514 B   (-0.3%)     -486 B   (-0.1%)
import-flow                             -3292 B   (-4.8%)     -434 B   (-4.3%)
assembler-first-flow                    -3185 B   (-2.9%)     -391 B   (-1.9%)
ai-assembler-flow                       -3112 B   (-3.6%)     -361 B   (-2.4%)
update-options-flow                     -2986 B   (-5.2%)     -325 B   (-5.1%)
trial-wooexpress-flow                   -2986 B   (-4.9%)     -331 B   (-4.3%)
tailored-ecommerce-flow                 -2986 B   (-4.8%)     -324 B   (-4.4%)
site-migration-flow                     -2986 B   (-3.4%)     -326 B   (-2.0%)
readymade-template-flow                 -2986 B   (-2.1%)     -337 B   (-1.1%)
onboarding-flow                         -2986 B   (-4.0%)     -319 B   (-2.7%)
migration-signup                        -2986 B   (-4.7%)     -327 B   (-3.9%)
migration-flow                          -2986 B   (-3.7%)     -326 B   (-2.2%)
hosted-site-migration-flow              -2986 B   (-3.4%)     -326 B   (-2.0%)
free-post-setup-flow                    -2986 B   (-5.2%)     -321 B   (-5.1%)
entrepreneur-flow                       -2986 B   (-2.4%)     -326 B   (-1.2%)
theme                                   -1079 B   (-0.1%)     -174 B   (-0.1%)
backup                                   +196 B   (+0.0%)     +683 B   (+0.2%)
a8c-for-agencies-team                    -196 B   (-0.0%)      -27 B   (-0.0%)
jetpack-cloud-agency-sites-v2            +159 B   (+0.0%)    +1301 B   (+0.2%)
a8c-for-agencies-sites                   +159 B   (+0.0%)    +1326 B   (+0.2%)
a8c-for-agencies-partner-directory       -142 B   (-0.0%)      -48 B   (-0.0%)
plugins                                  -121 B   (-0.0%)      +49 B   (+0.0%)
domains                                  +112 B   (+0.0%)    +1154 B   (+0.2%)
comments                                 -108 B   (-0.0%)      -33 B   (-0.0%)
site-settings                             -80 B   (-0.0%)      -53 B   (-0.0%)
settings                                  -80 B   (-0.0%)      -53 B   (-0.0%)
home                                      -80 B   (-0.0%)      -55 B   (-0.0%)
checkout                                  -80 B   (-0.0%)      +44 B   (+0.0%)
a8c-for-agencies-client                   +64 B   (+0.0%)      -39 B   (-0.0%)
themes                                    -54 B   (-0.0%)      -34 B   (-0.0%)
site-purchases                            -54 B   (-0.0%)     -220 B   (-0.0%)
site-overview                             -54 B   (-0.0%)      -33 B   (-0.0%)
site-blocks                               -54 B   (-0.0%)      -24 B   (-0.0%)
signup                                    -54 B   (-0.0%)      -22 B   (-0.0%)
security                                  -54 B   (-0.0%)      -24 B   (-0.0%)
purchases                                 -54 B   (-0.0%)     -219 B   (-0.0%)
privacy                                   -54 B   (-0.0%)      -24 B   (-0.0%)
notification-settings                     -54 B   (-0.0%)      -24 B   (-0.0%)
me                                        -54 B   (-0.0%)      -24 B   (-0.0%)
marketplace                               -54 B   (-0.0%)      -34 B   (-0.0%)
jetpack-connect                           -54 B   (-0.0%)      -31 B   (-0.0%)
jetpack-cloud-settings                    -54 B   (-0.0%)      -35 B   (-0.0%)
jetpack-cloud-pricing                     -54 B   (-0.0%)      -30 B   (-0.0%)
jetpack-cloud-features-comparison         -54 B   (-0.0%)      -32 B   (-0.0%)
jetpack-app                               -54 B   (-0.0%)      -23 B   (-0.0%)
hosting                                   -54 B   (-0.0%)      -33 B   (-0.0%)
help                                      -54 B   (-0.0%)      -24 B   (-0.0%)
email                                     -54 B   (-0.0%)      -34 B   (-0.0%)
developer                                 -54 B   (-0.0%)      -24 B   (-0.0%)
account-close                             -54 B   (-0.0%)      -24 B   (-0.0%)
account                                   -54 B   (-0.0%)      -24 B   (-0.0%)
plans                                     +44 B   (+0.0%)     -151 B   (-0.0%)
subscribers                               -26 B   (-0.0%)      -31 B   (-0.0%)
staging-site                              -26 B   (-0.0%)      -30 B   (-0.0%)
site-tools                                -26 B   (-0.0%)      -30 B   (-0.0%)
earn                                      -26 B   (-0.0%)      -26 B   (-0.0%)

Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to.

Async-loaded Components (~1190 bytes removed 📉 [gzipped])

name                                                                              parsed_size           gzip_size
async-load-automattic-design-preview                                                  -4546 B  (-0.3%)    -1027 B  (-0.2%)
async-load-comment-block-editor                                                        -105 B  (-0.0%)     -562 B  (-0.1%)
async-load-automattic-global-styles-src-components-global-styles-variations            -105 B  (-0.0%)     -562 B  (-0.1%)
async-load-purchase-modal-wrapper                                                       -54 B  (-0.0%)      -25 B  (-0.0%)
async-load-my-sites-checkout-purchase-modal-is-eligible-for-one-click-checkou...        -54 B  (-0.0%)      -24 B  (-0.0%)
async-load-design-blocks                                                                -54 B  (-0.0%)      -24 B  (-0.0%)
async-load-calypso-my-sites-current-site-stale-cart-items-notice                        -54 B  (-0.2%)      -22 B  (-0.3%)
async-load-calypso-layout-masterbar-checkout                                            -54 B  (-0.1%)      -23 B  (-0.1%)
async-load-calypso-blocks-editor-checkout-modal                                         -54 B  (-0.0%)      -26 B  (-0.0%)
async-load-masterbar-launchpad-navigator                                                -26 B  (-0.0%)      -19 B  (-0.1%)
async-load-calypso-my-sites-stats-pages-subscribers                                     -26 B  (-0.0%)      -19 B  (-0.0%)

React components that are loaded lazily, when a certain part of UI is displayed for the first time.

Legend

What is parsed and gzip size?

Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory.
Gzip Size: Compressed size of the JS and CSS files. This much data needs to be downloaded over network.

Generated by performance advisor bot at iscalypsofastyet.com.

@matticbot
Copy link
Contributor

matticbot commented Dec 11, 2024

This PR modifies the release build for the following Calypso Apps:

For info about this notification, see here: PCYsg-OT6-p2

  • blaze-dashboard
  • notifications
  • wpcom-block-editor

To test WordPress.com changes, run install-plugin.sh $pluginSlug delete/pattern-assembler on your sandbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants